package myTest;
import java.util.Queue;   
import java.util.LinkedList;   
public class queue {   
    public static void main(String[] args) {   
        Queue<Integer> queue = new LinkedList<Integer>();   
        queue.offer(1);   
        queue.offer(2);   
        queue.offer(3);   
        System.out.println(queue.size());   
        int str;   
        while(!queue.isEmpty()){
        	str=queue.poll();
            System.out.print(str+",");   
        }   
        System.out.println();   
        System.out.println(queue.size());
    }   
}